﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

using TerminologiaSinacor.Presenter;

public partial class page_FontesDetalhe : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

        string id = "";
        if (Request.Params["Id"].ToString() != "")
        {
            id = Request.Params["Id"].ToString();
            this.ViewState["id"] = id;
            Binding(id);
        }
    }
    protected void GrdFontesDetalhe_PageIndexChanging(object sender, DetailsViewPageEventArgs e)
    {
        string id = (string)this.ViewState["id"];
        this.GrdFontesDetalhe.PageIndex = e.NewPageIndex;
        Binding(id);

    }
    private void Binding(string id)
    {
        TerminologiaSinacor.Presenter.Fontes fontes = new Fontes();
        fontes.Id = id;
        this.GrdFontesDetalhe.DataSource = fontes.search(fontes);
        this.GrdFontesDetalhe.DataBind();

    }

}

